package demo.lgm.com.sharetransitiondemp;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {
    private Button btn1;
    private Button btn2;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
//        btn1 = findViewById(R.id.btn1);
//        btn2 = findViewById(R.id.btn2);

        Fragment fragment = getSupportFragmentManager().findFragmentByTag(BlankFragment1.class.getName());
        if (fragment == null) {
            fragment = new BlankFragment1();
            getSupportFragmentManager().beginTransaction().add(R.id.activity_main,
                    fragment,
                    BlankFragment1.class.getName())
                    .commit();
        }
    }
}
